package com.hfuu.dao.read.custom;

import com.hfuu.dao.read.mbg.MBGTbActivityReadDao;
import com.hfuu.service.activity.response.ActivityDetailResponse;
import com.hfuu.service.activity.response.ActivityResponse;
import com.hfuu.service.activity.response.AttendActivityResponse;
import com.hfuu.service.activity.response.PersonFunResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TbActivityReadDao extends MBGTbActivityReadDao {

    List<ActivityResponse> listActivity (@Param("activitySubject") Integer activitySubject,
                                         @Param("activityTitle") String activityTitle,
                                         @Param("status") Integer status,
                                         @Param("type") Integer type,
                                         @Param("id") Integer id,
                                         @Param("userId") Integer userId);

    List<ActivityDetailResponse> listActivityDetail (
                                         @Param("id") Integer id);

    Integer countAttend(@Param("id") Integer id, @Param("userId") Integer attendUserId);

    Integer countOrgainzer(@Param("activityId") Integer activityId, @Param("userId") Integer attendUserId);


    List<AttendActivityResponse> attendActivityTime (@Param("id") Integer id);

    /**
     * 获得个人募捐
     * @param userId
     * @return
     */
    List<PersonFunResponse> getPersonFun (@Param("userId") Integer userId);
}